CVE-2025-48935
Deno has --allow-read / --allow-write permission bypass in `node:sqlite`
Description
Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 2.2.0 and prior to versions 2.2.5, it is possible to bypass Deno's permission read/write db permission check by using `ATTACH DATABASE` statement. Version 2.2.5 contains a patch for the issue.
INFO
Published Date :
June 4, 2025, 8:15 p.m.
Last Modified :
July 2, 2025, 1:17 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 3.1 | CRITICAL | [email protected] | ||||
| CVSS 4.0 | MEDIUM | [email protected] | 
Solution
- Update Deno to version 2.2.5 or later.
 - Review database attachment permissions.
 
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2025-48935.
                                        
| URL | Resource | 
|---|---|
| https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860 | Patch | 
| https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596 | Exploit Vendor Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2025-48935 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2025-48935
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2025-48935 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2025-48935 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            
Initial Analysis by [email protected]
Jul. 02, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Added CPE Configuration OR *cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* versions from (including) 2.2.0 up to (excluding) 2.2.5 Added Reference Type GitHub, Inc.: https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596 Types: Exploit, Vendor Advisory  - 
                            
New CVE Received by [email protected]
Jun. 04, 2025
Action Type Old Value New Value Added Description Deno is a JavaScript, TypeScript, and WebAssembly runtime. Starting in version 2.2.0 and prior to versions 2.2.5, it is possible to bypass Deno's permission read/write db permission check by using `ATTACH DATABASE` statement. Version 2.2.5 contains a patch for the issue. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-863 Added Reference https://github.com/denoland/deno/commit/31a97803995bd94629528ba841b2418d3ca01860 Added Reference https://github.com/denoland/deno/security/advisories/GHSA-8vxj-4cph-c596